Add OpenGL Support for the GDK Windows Backend
authorChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 17 Dec 2014 04:32:04 +0000 (12:32 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 17 Dec 2014 08:07:02 +0000 (16:07 +0800)
commit536fa88cd8a9b0ee99f089da23e455b450622c48
treebfa3bb9b08385481d86b8448e51af2b57c867b2f
parent9fd9f61b00f1dd7f61beb19cccea5767887a6a4b
Add OpenGL Support for the GDK Windows Backend

This adds support for OpenGL to the GDK Windows backend using the WGL API
calls, which enables programs that uses the GTK+ GLArea widgets to work on
Windows as well.

This also adds a simple utility function to query for the version of OpenGL
that is supported by the Windows system, like the one provided by the X11
backend.

Many thanks to Alex (and Emmanuele, who started the OpenGL integration in
GTK+) who offered advice and help along the way, as well as the X11 and
Wayland backend for this work to refer to and to model upon.

https://bugzilla.gnome.org/show_bug.cgi?id=740795
gdk/win32/Makefile.am
gdk/win32/gdkdisplay-win32.c
gdk/win32/gdkdisplay-win32.h [new file with mode: 0644]
gdk/win32/gdkglcontext-win32.c [new file with mode: 0644]
gdk/win32/gdkglcontext-win32.h [new file with mode: 0644]
gdk/win32/gdkwin32.h
gdk/win32/gdkwin32glcontext.h [new file with mode: 0644]
gdk/win32/gdkwindow-win32.c